package ubadb.core.components.bufferManager.bufferPool.pools.multiple;

import ubadb.core.common.PageId;
import ubadb.core.components.bufferManager.bufferPool.BufferPool;

public class DefaultBufferPoolAssignment implements BufferPoolAssignment {

	private BufferPool defaultBufferPool;

	public DefaultBufferPoolAssignment(BufferPool defaultBufferPool) {
		super();
		this.defaultBufferPool = defaultBufferPool;
	}

	@Override
	public boolean canHandle(PageId pageId) {
		return true;
	}

	@Override
	public BufferPool getBufferPool() {
		return defaultBufferPool;
	}

}
